pp108 : setCaption Method

setCaption Method


This method sets the caption for the tab.

Syntax

tabID.setCaption(sCaption)

Parameters

Parameter

Description

sCaption

Required. String that specifies the caption for the tab.


Return Value


No return value.

Remarks


This method should be accessed through the tab that is created.

The caption set for the tab will be on the header of the tab.

Example


The following example shows how setCaption() is used to set the caption for a tab that is created.

//testTab is the ID of the tab component
var tab = testTab.getTab("myTab");
//Set caption
tab.setCaption("My Tab");

See Also


tabs